#include "BossToken.h"

#include "../SGD Wrappers/CSGD_TextureManager.h"

CBossToken::CBossToken( void )
{
	m_nTokenID = Boss_Token;
	m_nBossID = -1;
	m_fAbilityCooldown = 0.0f;

}

CBossToken::~CBossToken( void )
{

}

void CBossToken::Update( float fElapsedTime )
{
	BaseToken::Update( fElapsedTime );
}

void CBossToken::Render( void )
{
	// Get the instance of the Texture Manager and draw the token.
	CSGD_TextureManager::GetInstance()->Draw( GetImageID(), int(GetPosX()), int(GetPosY()), 0.5f, 0.5f );
}

RECT CBossToken::GetRect( void ) const
{
	return BaseToken::GetRect();
}

bool CBossToken::CheckCollision( IBaseToken* pOther )
{
	if( BaseToken::CheckCollision( pOther ) == true )
	{
		SetVelX( -GetVelX() );
		SetVelY( -GetVelY() );
		return true;
	}

	return false;
}